package com.ruoyi.common.exception.student;


public class WxLoginException  extends RuntimeException{
    private static final long serialVersionUID = 1L;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 错误提示码
     */
    private Long code;

    /**
     * 空构造方法，避免反序列化问题
     */
    public WxLoginException()
    {
    }

    public WxLoginException(String message)
    {
        this.message = message;
    }

    public WxLoginException(Long code,String message)
    {
        this.code = code;
        this.message = message;
    }


    @Override
    public String getMessage()
    {
        return message;
    }

    public WxLoginException setMessage(String message)
    {
        this.message = message;
        return this;
    }
    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }
}
